package com.jinmdz.fmis.api.admin.model.admin;

import com.jinmdz.fmis.core.base.BaseBean;

import java.util.ArrayList;

/**
 * 系统菜单加载数据
 *
 * @author LiCongLu
 * @date 2020-03-20 11:37
 */
public class AdminMenuTreeItem extends BaseBean {
    /**
     * 菜单主键
     */
    private Integer id;

    /**
     * 父业务菜单外键
     */
    private Integer parentId;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单路由
     */
    private String menuRoute;

    /**
     * 菜单重定向路由
     */
    private String menuRedirectRoute;

    /**
     * 菜单图标，element-ui中样式名称
     */
    private String menuIcon;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 关联按钮
     */
    private ArrayList<AdminMenuButtonViewItem> buttons;

    public Integer getId() {
        return id;
    }

    public AdminMenuTreeItem setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getParentId() {
        return parentId;
    }

    public AdminMenuTreeItem setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getMenuName() {
        return menuName;
    }

    public AdminMenuTreeItem setMenuName(String menuName) {
        this.menuName = menuName;
        return this;
    }

    public String getMenuRoute() {
        return menuRoute;
    }

    public AdminMenuTreeItem setMenuRoute(String menuRoute) {
        this.menuRoute = menuRoute;
        return this;
    }

    public String getMenuRedirectRoute() {
        return menuRedirectRoute;
    }

    public AdminMenuTreeItem setMenuRedirectRoute(String menuRedirectRoute) {
        this.menuRedirectRoute = menuRedirectRoute;
        return this;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public AdminMenuTreeItem setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public AdminMenuTreeItem setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public ArrayList<AdminMenuButtonViewItem> getButtons() {
        return buttons;
    }

    public AdminMenuTreeItem setButtons(ArrayList<AdminMenuButtonViewItem> buttons) {
        this.buttons = buttons;
        return this;
    }
}
